package com.spark3

object MainTest5 {


  def main(args: Array[String]): Unit = {

//      val a = new Calculate()
//      a.add("100")
//      a.add("3",Array("xx","yy"):_*)

        val b = new MainTest6()
        b.add(1)
        b.add(1,2,3)

        val c = Seq(1,2,3)
  }
}

class Calculate {

  def add(a:String,b:String*): Unit ={
    println("我是重载方法~~~")
    for(x <- b){
      println("x ==> " + x)
    }

  }

  def add(a:String): Unit ={
    println("一个参数的方法~~~")
  }

}
